﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ShelfStackDataSet" targetNamespace="http://tempuri.org/ShelfStackDataSet.xsd" xmlns:mstns="http://tempuri.org/ShelfStackDataSet.xsd" xmlns="http://tempuri.org/ShelfStackDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="TafitiConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="TafitiConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.WLQuickApps.Tafiti.Data.Properties.Settings.GlobalReference.Default.TafitiConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="ShelfStackTableAdapter" GeneratorDataComponentClassName="ShelfStackTableAdapter" Name="ShelfStack" UserDataComponentName="ShelfStackTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="TafitiConnectionString (Settings)" DbObjectName="Tafiti.dbo.ShelfStack" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [ShelfStack] WHERE (([ShelfStackID] = @Original_ShelfStackID) AND ([Label] = @Original_Label) AND ([LastModifiedTimestamp] = @Original_LastModifiedTimestamp) AND ([CreatedTimestamp] = @Original_CreatedTimestamp))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ShelfStackID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShelfStackID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Label" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Label" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_LastModifiedTimestamp" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="LastModifiedTimestamp" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_CreatedTimestamp" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="CreatedTimestamp" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>
                      INSERT INTO [ShelfStack] ([ShelfStackID], [Label], [LastModifiedTimestamp], [CreatedTimestamp]) VALUES (@ShelfStackID, @Label, @LastModifiedTimestamp, @CreatedTimestamp);
                      SELECT ShelfStackID, Label, LastModifiedTimestamp, CreatedTimestamp FROM ShelfStack WHERE (ShelfStackID = @ShelfStackID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ShelfStackID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShelfStackID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Label" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Label" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@LastModifiedTimestamp" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="LastModifiedTimestamp" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@CreatedTimestamp" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="CreatedTimestamp" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>
                      SELECT        ShelfStackID, Label, LastModifiedTimestamp, CreatedTimestamp
                      FROM            ShelfStack
                    </CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>
                      UPDATE [ShelfStack] SET [ShelfStackID] = @ShelfStackID, [Label] = @Label, [LastModifiedTimestamp] = @LastModifiedTimestamp, [CreatedTimestamp] = @CreatedTimestamp WHERE (([ShelfStackID] = @Original_ShelfStackID) AND ([Label] = @Original_Label) AND ([LastModifiedTimestamp] = @Original_LastModifiedTimestamp) AND ([CreatedTimestamp] = @Original_CreatedTimestamp));
                      SELECT ShelfStackID, Label, LastModifiedTimestamp, CreatedTimestamp FROM ShelfStack WHERE (ShelfStackID = @ShelfStackID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@ShelfStackID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShelfStackID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Label" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Label" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@LastModifiedTimestamp" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="LastModifiedTimestamp" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@CreatedTimestamp" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="CreatedTimestamp" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Guid" Direction="Input" ParameterName="@Original_ShelfStackID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="0" SourceColumn="ShelfStackID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_Label" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Label" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_LastModifiedTimestamp" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="LastModifiedTimestamp" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@Original_CreatedTimestamp" Precision="0" ProviderType="DateTime" Scale="0" Size="0" SourceColumn="CreatedTimestamp" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ShelfStackID" DataSetColumn="ShelfStackID" />
              <Mapping SourceColumn="Label" DataSetColumn="Label" />
              <Mapping SourceColumn="LastModifiedTimestamp" DataSetColumn="LastModifiedTimestamp" />
              <Mapping SourceColumn="CreatedTimestamp" DataSetColumn="CreatedTimestamp" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="TafitiConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="AddUserToShelfStack" Modifier="Public" Name="AddUserToShelfStack" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="AddUserToShelfStack">
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>
                      DELETE FROM ShelfStackOwners WHERE UserID = @userID AND ShelfStackID = @shelfStackID;
                      INSERT INTO ShelfStackOwners
                      (UserID, ShelfStackID)
                      VALUES        (@userID, @shelfStackID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="userID" ColumnName="UserID" DataSourceName="Tafiti.dbo.ShelfStackOwners" DataTypeServer="char(32)" DbType="AnsiString" Direction="Input" ParameterName="@userID" Precision="0" ProviderType="Char" Scale="0" Size="32" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="shelfStackID" ColumnName="ShelfStackID" DataSourceName="Tafiti.dbo.ShelfStackOwners" DataTypeServer="uniqueidentifier" DbType="Guid" Direction="Input" ParameterName="@shelfStackID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="16" SourceColumn="ShelfStackID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
              </DbSource>
              <DbSource ConnectionRef="TafitiConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="CreatePendingInvite" Modifier="Public" Name="CreatePendingInvite" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="CreatePendingInvite">
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>
                      DELETE FROM PendingInvites WHERE ShelfStackID = @shelfStackID AND EmailHash = @emailHash;
                      INSERT INTO PendingInvites
                      (ShelfStackID, EmailHash)
                      VALUES        (@shelfStackID,@emailHash)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="shelfStackID" ColumnName="ShelfStackID" DataSourceName="Tafiti.dbo.PendingInvites" DataTypeServer="uniqueidentifier" DbType="Guid" Direction="Input" ParameterName="@shelfStackID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="16" SourceColumn="ShelfStackID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="emailHash" ColumnName="EmailHash" DataSourceName="Tafiti.dbo.PendingInvites" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@emailHash" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="EmailHash" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
              </DbSource>
              <DbSource ConnectionRef="TafitiConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="CreateShelfStack" Modifier="Public" Name="CreateShelfStack" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy2" UserSourceName="CreateShelfStack">
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>
                      INSERT INTO [dbo].[ShelfStack] (ShelfStackID, Label) VALUES (@shelfStackID, @label);
                      SELECT SCOPE_IDENTITY()</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="shelfStackID" ColumnName="ShelfStackID" DataSourceName="Tafiti.dbo.ShelfStack" DataTypeServer="uniqueidentifier" DbType="Guid" Direction="Input" ParameterName="@shelfStackID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="16" SourceColumn="ShelfStackID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="label" ColumnName="Label" DataSourceName="Tafiti.dbo.ShelfStack" DataTypeServer="nvarchar(256)" DbType="String" Direction="Input" ParameterName="@label" Precision="0" ProviderType="NVarChar" Scale="0" Size="256" SourceColumn="Label" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
              </DbSource>
              <DbSource ConnectionRef="TafitiConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeletePendingInvitesForEmailHash" Modifier="Public" Name="DeletePendingInvitesForEmailHash" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy3" UserSourceName="DeletePendingInvitesForEmailHash">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>DELETE FROM PendingInvites
WHERE        (EmailHash = @emailHash)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="emailHash" ColumnName="EmailHash" DataSourceName="Tafiti.dbo.PendingInvites" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@emailHash" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="EmailHash" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
              </DbSource>
              <DbSource ConnectionRef="TafitiConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteShelfStack" Modifier="Public" Name="DeleteShelfStack" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy4" UserSourceName="DeleteShelfStack">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>DELETE FROM [dbo].[ShelfStack] WHERE ShelfStackID = @shelfStackID</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="shelfStackID" ColumnName="ShelfStackID" DataSourceName="Tafiti.dbo.ShelfStack" DataTypeServer="uniqueidentifier" DbType="Guid" Direction="Input" ParameterName="@shelfStackID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="16" SourceColumn="ShelfStackID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
              </DbSource>
              <DbSource ConnectionRef="TafitiConnectionString (Settings)" DbObjectName="Tafiti.dbo.ShelfStack" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetPendingShelfStackInvitesForEmailHash" GetMethodModifier="Public" GetMethodName="GetPendingShelfStackInvitesForEmailHash" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetPendingShelfStackInvitesForEmailHash" UserSourceName="GetPendingShelfStackInvitesForEmailHash">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ShelfStack.CreatedTimestamp, ShelfStack.Label, ShelfStack.LastModifiedTimestamp, ShelfStack.ShelfStackID FROM ShelfStack INNER JOIN PendingInvites ON ShelfStack.ShelfStackID = PendingInvites.ShelfStackID WHERE (PendingInvites.EmailHash = @emailHash)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="emailHash" ColumnName="EmailHash" DataSourceName="Tafiti.dbo.PendingInvites" DataTypeServer="nvarchar(50)" DbType="String" Direction="Input" ParameterName="@emailHash" Precision="0" ProviderType="NVarChar" Scale="0" Size="50" SourceColumn="EmailHash" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="TafitiConnectionString (Settings)" DbObjectName="Tafiti.dbo.ShelfStack" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetShelfStackByID" GetMethodModifier="Public" GetMethodName="GetShelfStackByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetShelfStackByID" UserSourceName="GetShelfStackByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT CreatedTimestamp, Label, LastModifiedTimestamp, ShelfStackID FROM ShelfStack WHERE (ShelfStackID = @shelfStackID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="shelfStackID" ColumnName="ShelfStackID" DataSourceName="Tafiti.dbo.ShelfStack" DataTypeServer="uniqueidentifier" DbType="Guid" Direction="Input" ParameterName="@shelfStackID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="16" SourceColumn="ShelfStackID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="TafitiConnectionString (Settings)" DbObjectName="Tafiti.dbo.ShelfStack" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="GetShelfStacksForUserID" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetShelfStacksForUserID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetShelfStacksForUserID" UserSourceName="GetShelfStacksForUserID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT ShelfStack.CreatedTimestamp, ShelfStack.Label, ShelfStack.LastModifiedTimestamp, ShelfStack.ShelfStackID FROM ShelfStack INNER JOIN ShelfStackOwners ON ShelfStack.ShelfStackID = ShelfStackOwners.ShelfStackID WHERE (ShelfStackOwners.UserID = @userID) ORDER BY ShelfStack.CreatedTimestamp</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="userID" ColumnName="UserID" DataSourceName="Tafiti.dbo.ShelfStackOwners" DataTypeServer="char(32)" DbType="AnsiString" Direction="Input" ParameterName="@userID" Precision="0" ProviderType="Char" Scale="0" Size="32" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="TafitiConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorGetMethodName="GetDataBy6" GeneratorSourceName="RemoveUserFromShelfStack" Modifier="Public" Name="RemoveUserFromShelfStack" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy5" UserSourceName="RemoveUserFromShelfStack">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>
                      DELETE FROM ShelfStackOwners
                      WHERE        (UserID = @userID) AND (ShelfStackID = @shelfStackID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="userID" ColumnName="UserID" DataSourceName="Tafiti.dbo.ShelfStackOwners" DataTypeServer="char(32)" DbType="AnsiString" Direction="Input" ParameterName="@userID" Precision="0" ProviderType="Char" Scale="0" Size="32" SourceColumn="UserID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="shelfStackID" ColumnName="ShelfStackID" DataSourceName="Tafiti.dbo.ShelfStackOwners" DataTypeServer="uniqueidentifier" DbType="Guid" Direction="Input" ParameterName="@shelfStackID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="16" SourceColumn="ShelfStackID" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
              </DbSource>
              <DbSource ConnectionRef="TafitiConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="UpdateShelfStack" Modifier="Public" Name="UpdateShelfStack" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy6" UserSourceName="UpdateShelfStack">
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>
                      UPDATE       ShelfStack
                      SET                Label = @label, LastModifiedTimestamp = CURRENT_TIMESTAMP
                      WHERE        (ShelfStackID = @shelfStackID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="shelfStackID" ColumnName="ShelfStackID" DataSourceName="Tafiti.dbo.ShelfStack" DataTypeServer="uniqueidentifier" DbType="Guid" Direction="Input" ParameterName="@shelfStackID" Precision="0" ProviderType="UniqueIdentifier" Scale="0" Size="16" SourceColumn="ShelfStackID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="label" ColumnName="Label" DataSourceName="Tafiti.dbo.ShelfStack" DataTypeServer="nvarchar(256)" DbType="String" Direction="Input" ParameterName="@label" Precision="0" ProviderType="NVarChar" Scale="0" Size="256" SourceColumn="Label" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="ShelfStackDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="ShelfStackDataSet" msprop:Generator_DataSetName="ShelfStackDataSet" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="ShelfStack" msprop:Generator_UserTableName="ShelfStack" msprop:Generator_RowDeletedName="ShelfStackRowDeleted" msprop:Generator_RowChangedName="ShelfStackRowChanged" msprop:Generator_RowClassName="ShelfStackRow" msprop:Generator_RowChangingName="ShelfStackRowChanging" msprop:Generator_RowEvArgName="ShelfStackRowChangeEvent" msprop:Generator_RowEvHandlerName="ShelfStackRowChangeEventHandler" msprop:Generator_TableClassName="ShelfStackDataTable" msprop:Generator_TableVarName="tableShelfStack" msprop:Generator_RowDeletingName="ShelfStackRowDeleting" msprop:Generator_TablePropName="ShelfStack">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ShelfStackID" msdata:DataType="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" msprop:Generator_UserColumnName="ShelfStackID" msprop:Generator_ColumnVarNameInTable="columnShelfStackID" msprop:Generator_ColumnPropNameInRow="ShelfStackID" msprop:Generator_ColumnPropNameInTable="ShelfStackIDColumn" type="xs:string" />
              <xs:element name="Label" msprop:Generator_UserColumnName="Label" msprop:Generator_ColumnVarNameInTable="columnLabel" msprop:Generator_ColumnPropNameInRow="Label" msprop:Generator_ColumnPropNameInTable="LabelColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="256" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="LastModifiedTimestamp" msprop:Generator_UserColumnName="LastModifiedTimestamp" msprop:Generator_ColumnPropNameInRow="LastModifiedTimestamp" msprop:Generator_ColumnVarNameInTable="columnLastModifiedTimestamp" msprop:Generator_ColumnPropNameInTable="LastModifiedTimestampColumn" type="xs:dateTime" />
              <xs:element name="CreatedTimestamp" msprop:Generator_UserColumnName="CreatedTimestamp" msprop:Generator_ColumnPropNameInRow="CreatedTimestamp" msprop:Generator_ColumnVarNameInTable="columnCreatedTimestamp" msprop:Generator_ColumnPropNameInTable="CreatedTimestampColumn" type="xs:dateTime" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:ShelfStack" />
      <xs:field xpath="mstns:ShelfStackID" />
    </xs:unique>
  </xs:element>
</xs:schema>